<?php
session_start();
include('./config.php'); //File with main settings
include(LIB.'autoload.php'); //Autoload function	
try
{
	$router = new Router();			
}
catch(Exception $e)
{
	$error =  $e->getMessage();
	View::deleteAll(); //Delete all view data
	View::assign('content',$error); //Send exception text to main template
	View::assign('header','');
	View::assign('sidebar','');
}
View::display(); //Print main template
